﻿<shared:UserControlBase x:Class="Miris.HumanMilkAnalyser.WPF.CustomizedUserControl.BreastfeedingSignificanceReportContentUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:shared="clr-namespace:Miris.HumanMilkAnalyser.WPF.Shared"
             mc:Ignorable="d" 
             d:DesignHeight="1100" d:DesignWidth="758">
    <Grid Margin="20" Width="758" Height="1100">
        <Grid.RowDefinitions>
            <!-- Logo, Header & Title -->
            <RowDefinition Height="90" />
            <!-- Title & Content of BreastfeedingSignificance -->
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid>
            <Grid.ColumnDefinitions>
                <!-- Logo -->
                <ColumnDefinition Width="Auto" />
                <!-- Report Title -->
                <ColumnDefinition />
                <!-- Analysis Report Title -->
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Image Margin="0,0,2,0" Source="{Binding CompanyLogoFileFullName}" VerticalAlignment="Top" Height="60" />
            <StackPanel Grid.Column="1">
                <TextBlock Text="{Binding CompanyName}" Style="{StaticResource AnalysisReportTitleTextBlock}" />
                <TextBlock Text="{Binding CompanyAddress}" Style="{StaticResource AnalysisReportBlackTextBlock}" />
                <TextBlock Text="{Binding CompanyPhoneNumber}" Style="{StaticResource AnalysisReportBlackTextBlock}" />
            </StackPanel>
            <Image Grid.Column="2" Margin="0,0,-25,0" VerticalAlignment="Top" Source="/Skins/Resource/Image/SystemTitle.png" Width="300" />
        </Grid>
        <Border Grid.Row="1" Background="LightGray" Padding="20" VerticalAlignment="Top" Width="700" Height="950">
            <Grid>
                <Grid.RowDefinitions>
                    <!-- Title of BreastfeedingSignificance -->
                    <RowDefinition Height="35" />
                    <!-- Content of BreastfeedingSignificance -->
                    <RowDefinition />
                </Grid.RowDefinitions>
                <TextBlock HorizontalAlignment="Center" Text="{Binding CurrentBreastfeedingSignificance.Title}" Style="{StaticResource AnalysisReportTitleTextBlock}" />
                <TextBlock Grid.Row="1" Foreground="Black" VerticalAlignment="Top" LineHeight="22" Text="{Binding CurrentBreastfeedingSignificance.SignificanceContent}" Style="{StaticResource AnalysisReportItemTitleTextBlock}" />
            </Grid>
        </Border>
    </Grid>
</shared:UserControlBase>
